//
//  ProvisionHelp.swift
//  IOSProvisionLib
//
//  Created by 温日盛 on 2025/11/4.
//  Copyright © 2025 CocoaPods. All rights reserved.
//

import ESPProvision

public func converSessionStatus(status: ESPSessionStatus, connectedHandle: () -> Void, disconnectedHandle: () -> Void, failedToConnectHandle: (ESPSessionError) -> Void) {
    switch status {
    case .connected:
        connectedHandle()
        break
    case .disconnected:
        disconnectedHandle()
        break
    case let .failedToConnect(error):
        failedToConnectHandle(error)
        break
    }
}

public func converESPProvisionStatus(status: ESPProvisionStatus, successHandle: () -> Void, configAppliedHandle: () -> Void, failedHandle: (ESPProvisionError) -> Void) {
    switch status {
    case .success:
        successHandle()
        break
    case .configApplied:
        configAppliedHandle()
        break
    case let .failure(error):
        failedHandle(error)
        break
    }
}



func testaa() {
   
}
